import LayOut from '@/views/LayOut.vue'
import FindHouse from '@/views/FindHouse.vue'
import First from '@/views/First.vue'
import News from '@/views/News.vue'
import My from '@/views/My.vue'


import HoustDetail from '@/views/HoustDetail.vue'


const routes = [
  {
    path: '/',
    redirect:'/find',
    component:LayOut,
    name: 'laypout',
    children: [
      {
        path: 'find',
        component:FindHouse,
   
      },
      {
        path: 'first',
        component:First,

      },
      {
        path: 'news',
        component:News,
      
      },
      {
        path: 'my',
        component:My,
    
      },
      
    ]
  },
  {
    path: '/detail',
    name:'detail',
    component:HoustDetail
    
  },
  
]
export default routes